home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / XML Utilities / Professional Programmer XSL IDE / Xselerator25.msi / Data.Cab / F32540_testMap.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2002-01-20  |  902 b   |  31 lines

  1. <xsl:stylesheet version="1.0" 
  2. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns:msxsl="urn:schemas-microsoft-com:xslt"
  4. xmlns:testmap="testmap"
  5. exclude-result-prefixes="xsl testmap"
  6. >
  7.    <xsl:import href="map.xsl"/>
  8.    
  9.    <!-- This transformation must be applied to:
  10.         numList.xml 
  11.     -->
  12.    
  13.    <testmap:testmap/>
  14.  
  15.    <xsl:output omit-xml-declaration="yes" indent="yes"/>
  16.    
  17.    <xsl:template match="/">
  18.      <xsl:variable name="vTestMap" select="document('')/*/testmap:*[1]"/>
  19.      <xsl:call-template name="map">
  20.        <xsl:with-param name="pFun" select="$vTestMap"/>
  21.        <xsl:with-param name="pList1" select="/*/*"/>
  22.      </xsl:call-template>
  23.    </xsl:template>
  24.  
  25.     <xsl:template name="double" match="*[namespace-uri() = 'testmap']">
  26.       <xsl:param name="arg1"/>
  27.       
  28.       <xsl:value-of select="2 * $arg1"/>
  29.     </xsl:template>
  30.  
  31. </xsl:stylesheet>